package com.guli.gulimall.guliessearch;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

//@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
@SpringBootApplication
@EnableDiscoveryClient
//@RefreshScope
@EnableFeignClients
@EnableRedisHttpSession
public class GulimallESApplication {

    public static void main(String[] args) {

        SpringApplication springApplication = new SpringApplication();
        springApplication.setAddCommandLineProperties(true);
        springApplication.run(GulimallESApplication.class, args);
    }

}
